package com.service.impl;

import java.util.List;

import com.dao.VersionDao;
import com.enetiy.Area;
import com.enetiy.Version;
import com.service.VersionService;

public class VersionServiceImpl implements VersionService {
	private VersionDao versionDao;
	@Override
	public List<Version> selectVersionList() throws Exception {
		
		return versionDao.selectVersionList();
	}

	@Override
	public void updateVersion(Version v) throws Exception {
		versionDao.updateVersion(v);
	}

	@Override
	public void deleteVersion(Version v) throws Exception {
		versionDao.deleteVersion(v);
	}

	@Override
	public void insertVersion(Version v) throws Exception {
		versionDao.insertVersion(v);
	}

	public void setVersionDao(VersionDao versionDao) {
		this.versionDao = versionDao;
	}

	@Override
	public List<Version> selectVersion(int status,int type,int apptype) throws Exception {
		return this.versionDao.selectVersion(status,type,apptype);
	}
	
	@Override
	public Version selectVersion(String ver, int type,int apptype) throws Exception {
		return this.versionDao.selectVersion(ver, type,apptype);
	}
}
